package trab;

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;

public class Main {

	private static String pathDestination = "C:\\destino";
	private static String pathSource = "C:\\origem";
	
	public static void main(String args[]){
		
		Scanner in = new Scanner(System.in);

		/*System.out.print("--- Informe o primeiro diretorio: ");
		pathSource = in.next();
		
		System.out.print("--- Informe o segundo diretorio: ");
		pathDestination = in.next();*/
		
		ChecksDirectories checksDirectories = new ChecksDirectories();
		
		Path pathOrigem = Paths.get(pathSource);
		Path pathDestino = Paths.get(pathDestination);
				
		ThreadPath threadPathOrigemDestino = new ThreadPath(pathOrigem, pathDestino, checksDirectories);
		ThreadPath threadPathDestinoOrigem = new ThreadPath(pathDestino, pathOrigem, checksDirectories);
		
		threadPathOrigemDestino.start();
		try {
			Thread.sleep(10000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		threadPathDestinoOrigem.start();
		
	}	
	
}